/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Client.domain;

import Client.gui.Drawable;
import java.awt.Color;
import java.awt.image.BufferedImage;

/**
 *
 * @author Ripper
 */
public class ClientDecorativeElement implements Drawable
{
    private double x;
    private double y;
    private int id;
    private int drawid;
    private Color[] colors;
    
    //TODO: turn this into animation
    private BufferedImage img;
    private BufferedImage imagewhenSelecting;
    
    public ClientDecorativeElement(ClientGameSession gameSession, int id, int d_id, double xx, double yy, Color[] coloring)
    {
        x = xx;
        y = yy;
        this.id = id;
        drawid = d_id;
        colors = coloring;
        
        //TODO: use animations
        img = gameSession.getCdc().getImage(drawid+"", coloring);
        imagewhenSelecting = gameSession.getCdc().surroundImageWithBorder(img, new Color(0,200,255,255));
    }

    @Override
    public BufferedImage getImageToDraw() 
    {
        return img;
    }
    
    @Override
    public double getRotation()
    {
        return 0;
    }
    
    @Override
    public BufferedImage getImageToDrawWhenSelecting()
    {
        return imagewhenSelecting;
    }

    @Override
    public double getX() 
    {
        return x;
    }

    @Override
    public double getY() 
    {
        return y;
    }

    @Override
    public int getHpprct() 
    {
        return -1;
    }

    @Override
    public String getName() 
    {
        return "";
    }
    
    public int getId()
    {
        return id;
    }
}
